package com.lzs.bootsafety.business.sys.service.impl;

import com.lzs.bootsafety.business.sys.entity.SysUserPost;
import com.lzs.bootsafety.business.sys.mapper.SysUserPostMapper;
import com.lzs.bootsafety.business.sys.service.SysUserPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysUserPostServiceImpl implements SysUserPostService {
    @Autowired
    private SysUserPostMapper sysUserPostMapper;
    @Override
    public int addSysUserPost(List<SysUserPost> sysUserPosts) {
        return sysUserPostMapper.insertSysUserPost(sysUserPosts);
    }

    @Override
    public int delSysUserPost(List<Long> userId) {
        return sysUserPostMapper.deleteSysUserPost(userId);
    }
}
